package day7.sp;

import java.io.Serializable;

public class Member implements Serializable {
    private String cardNumber;
    private String name;
    private String phone;
    private int integral;
    private String password;
    private String CardOpenTime;

    public Member(String cardNumber, String name, String phone, int integral, String password, String cardOpenTime) {
        this.cardNumber = cardNumber;
        this.name = name;
        this.phone = phone;
        this.integral = integral;
        this.password = password;
        CardOpenTime = cardOpenTime;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCardOpenTime() {
        return CardOpenTime;
    }

    public void setCardOpenTime(String cardOpenTime) {
        CardOpenTime = cardOpenTime;
    }

    @Override
    public String toString() {
        return "Member{" +
                "卡号：'" + cardNumber + '\'' +
                ", 名字：'" + name + '\'' +
                ", 手机：'" + phone + '\'' +
                ", 积分：" + integral +
                ", 开卡时间：" + CardOpenTime +
                '}';
    }
}
